package com.xmb.wcapi.constant;

public enum MaterialTypeConstant {

	A("A", "产成品"),

	B("B", "制程"),

	D("D", "原料"),
	eighteen("18", "不良品重工"),
	fiftyThree("53", "不良品重工"),
	ten("10", "外验ok"),
	thirtyFour("34", "待验"),

	C("C", "辅料");



	public String code;

	public String message;

	MaterialTypeConstant(String code, String message){
		
		this.code = code;
		this.message = message;
	}
	
	public static String getMessage(String code) {
		for (MaterialTypeConstant c : MaterialTypeConstant.values()) {
			if (c.getCode().equals(code)) {
				return c.message;
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
